﻿using System;
using StudentWeb.Common;

namespace StudentWeb.Model
{
	/// <summary>
	/// BookData
	/// </summary>
    [Serializable]
	public class BookData
	{
		/// <summary>
		/// BookID
        /// </summary>
        [FieldName("BookID")]		
		public int BookID
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookNo
        /// </summary>
        [FieldName("BookNo")]		
		public string BookNo
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookState
        /// </summary>
        [FieldName("BookState")]		
		public int? BookState
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookName
        /// </summary>
        [FieldName("BookName")]		
		public string BookName
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookAuthor
        /// </summary>
        [FieldName("BookAuthor")]		
		public string BookAuthor
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookPublisher
        /// </summary>
        [FieldName("BookPublisher")]		
		public string BookPublisher
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookPages
        /// </summary>
        [FieldName("BookPages")]		
		public int? BookPages
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookPrice
        /// </summary>
        [FieldName("BookPrice")]		
		public decimal BookPrice
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookPublishdate
        /// </summary>
        [FieldName("BookPublishdate")]		
		public DateTime BookPublishdate
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int? RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookKind
        /// </summary>
        [FieldName("BookKind")]		
		public string BookKind
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int? EditUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// BookImage
        /// </summary>
        [FieldName("BookImage")]		
		public string BookImage
		{
			get;
			set;
		}
        
        public BookData Clone()
        {
            return (BookData)this.MemberwiseClone();
        }
        
        public BookData()
        {
            BookNo = string.Empty;
            BookName = string.Empty;
            BookAuthor = string.Empty;
            BookPublisher = string.Empty;
            BookPublishdate = ConvertHelper.DefaultDate;
            RegDateTime = ConvertHelper.DefaultDate;
            EditDateTime = ConvertHelper.DefaultDate;
            BookKind = string.Empty;
            BookImage = string.Empty;
        }
	}
}
